﻿
@using Annual_faculty_promotions.WebUI.Models
@model Annual_faculty_promotions.WebUI.Models.LoginViewModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="bpanel bpanel-default">
    <div class="bpanel-body">
        <div class="row">
            <div class="col-md-12">
                <section id="loginForm">
                    @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
                    {
                        @Html.AntiForgeryToken()
                        <h4>ورود به سامانه </h4>
                        <hr />
                       @Html.ValidationSummary("", new {@class = "alert alert-danger"})
                        <div class="form-group">
                            @Html.LabelFor(m => m.Email, new { @class = "col-md-3 control-label" })
                            <div class="col-md-9">
                                @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.LabelFor(m => m.Password, new { @class = "col-md-3 control-label" })
                            <div class="col-md-9">
                                @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-offset-3 col-md-9">
                                <div class="checkbox">
                                    @Html.CheckBoxFor(m => m.RememberMe)
                                    @Html.LabelFor(m => m.RememberMe)
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.LabelFor(m => m.Captcha, new { @class = "col-md-3 control-label" })
                            <div class="col-md-offset-3 col-md-9">
                                <input type="image" id="image" src="@Url.Action("Image", "Home")" alt="بارگذاری تصویر"/>
                              
                                <div style="margin-bottom: 25px" class="input-group">
                                    @Html.TextBoxFor(m => m.Captcha, new {@class = "form-control"})
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-offset-3 col-md-9">
                                <input type="submit" value="وارد شوید" class="btn btn-default"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-offset-3 col-md-9">
                                <p>
                                    @Html.ActionLink("در صورتي كه كلمه عبور خود را فراموش كرده ايد بر روي اين لينك كليك نماييد.", "ForgotPassword")
                                </p>
                            </div>
                        </div>
                        
                    }
                </section>
            </div>
        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
